import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'bbs/sysBbs',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: 'bbs/sysBbs',
    method: 'put',
    data
  })
}

export function delAll(ids) {
  return request({
    url: 'bbs/sysBbs',
    method: 'delete',
    data: ids
  })
}

export function findArticle(id) {
  return request({
    url: 'bbs/sysBbs/' + id,
    method: 'get'
  })
}

export function addComment(data) {
  return request({
    url: 'bbs/SysBbsComment',
    method: 'post',
    data
  })
}

export function delComment(id) {
  return request({
    url: 'bbs/SysBbsComment/' + id,
    method: 'delete'
  })
}

